package com.springboot.springmvc.restful.crud.dao;

import com.springboot.springmvc.restful.crud.bean.Employee;

import java.util.List;

public interface EmployeeDao {

    //根据id查询员工
    Employee getEmpById(Long id);

    //增加员工
    void addEmp(Employee employee);

    //修改员工
    void updateEmp(Employee employee);

    //删除员工
    void deleteEmp(Long id);

    //查询所有
    List<Employee> getList();
}
